﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/user/login',
        component: './user/Login',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/home',
    layout: false,
    name: '首页',
    icon: 'smile',
    component: './Home',
    access: 'normalRouteFilter', // 会调用 src/access.ts 中返回的 normalRouteFilter 进行鉴权
  },
  {
    path: '/userManage',
    name: '用户管理',
    icon: 'UserOutlined',
    component: './userManage/index',
    access: 'superrouterFielter',
  },
  {
    path: '/detectorManage',
    name: '监测器管理',
    icon: 'DashboardOutlined',
    component: './detectorManage/index',
    access: 'normalRouteFilter',
  },
  {
    path: '/monitorManage',
    name: '监测断面管理',
    icon: 'EnvironmentOutlined',
    component: './monitorManage/index',
    access: 'normalRouteFilter',
  },
  {
    path: '/alarmManage',
    name: '预警信息管理',
    icon: 'BellOutlined',
    component: './alarmManage/index',
    access: 'normalRouteFilter',
  },
  {
    path: '/polluteChart',
    name: '污染图表展示',
    icon: 'PieChartOutlined',
    component: './polluteChart/index',
    access: 'normalRouteFilter',
  },
  {
    path: '/journalManage',
    name: '生成检测日志',
    icon: 'FileTextOutlined',
    hideInMenu: true,
    component: './journalManage/index',
    access: 'normalRouteFilter',
  },
  {
    path: '/',
    redirect: '/home',
  },
  {
    component: './404',
  },
];
